package com.hy.pojo.vaccine;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 疫苗信息表：存储疫苗的详细信息，包括基本信息、价格、库存、使用说明等
 * @TableName vaccine
 */
@TableName(value ="vaccine")
@Data
public class Vaccine implements Serializable {
    /**
     * 疫苗ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 疫苗分类ID
     */
    @TableField(value = "category_id")
    private int categoryId;

    /**
     * 疫苗名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 疫苗编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 疫苗描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 预防说明
     */
    @TableField(value = "prevention_description")
    private String preventionDescription;

    /**
     * 价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 原价
     */
    @TableField(value = "original_price")
    private BigDecimal originalPrice;

    /**
     * 库存数量
     */
    @TableField(value = "stock_quantity")
    private Integer stockQuantity;

    /**
     * 库存预警数量
     */
    @TableField(value = "stock_warning")
    private Integer stockWarning;

    /**
     * 生产厂家
     */
    @TableField(value = "manufacturer")
    private String manufacturer;

    /**
     * 生产日期
     */
    @TableField(value = "production_date")
    private Date productionDate;

    /**
     * 有效期
     */
    @TableField(value = "expiration_date")
    private Date expirationDate;

    /**
     * 存储条件
     */
    @TableField(value = "storage_condition")
    private String storageCondition;

    /**
     * 使用说明
     */
    @TableField(value = "usage_instruction")
    private String usageInstruction;

    /**
     * 禁忌说明
     */
    @TableField(value = "contraindication")
    private String contraindication;

    /**
     * 副作用说明
     */
    @TableField(value = "side_effects")
    private String sideEffects;

    /**
     * 状态：0-下架 1-上架
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 是否热门：0-否 1-是
     */
    @TableField(value = "is_hot")
    private Integer isHot;

    /**
     * 是否删除：0-否 1-是
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人ID
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人ID
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}